.class Lcom/netease/newsreader/activity/NewsReader$getmorePhotoset;
.super Ljava/lang/Thread;
.source "NewsReader.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/NewsReader;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "getmorePhotoset"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/NewsReader;


# direct methods
.method private constructor <init>(Lcom/netease/newsreader/activity/NewsReader;)V
    .locals 0
    .parameter

    .prologue
    .line 4922
    iput-object p1, p0, Lcom/netease/newsreader/activity/NewsReader$getmorePhotoset;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/netease/newsreader/activity/NewsReader;Lcom/netease/newsreader/activity/NewsReader$getmorePhotoset;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 4922
    invoke-direct {p0, p1}, Lcom/netease/newsreader/activity/NewsReader$getmorePhotoset;-><init>(Lcom/netease/newsreader/activity/NewsReader;)V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 11

    .prologue
    const/16 v10, 0x2a

    .line 4925
    new-instance v8, Ljava/lang/StringBuilder;

    const-string v9, "http://c.3g.163.com/photo/api/morelist/0096/4GJ60096/"

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v9, p0, Lcom/netease/newsreader/activity/NewsReader$getmorePhotoset;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v9}, Lcom/netease/newsreader/activity/NewsReader;->access$109(Lcom/netease/newsreader/activity/NewsReader;)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, ".json"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 4927
    .local v4, morephotolisturl:Ljava/lang/String;
    const/16 v8, 0x7530

    iget-object v9, p0, Lcom/netease/newsreader/activity/NewsReader$getmorePhotoset;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v4, v8, v9}, Lcom/netease/newsreader/util/HttpUtils;->getResponseFromGetUrl(Ljava/lang/String;ILandroid/content/Context;)Ljava/lang/String;

    move-result-object v7

    .line 4928
    .local v7, rst:Ljava/lang/String;
    new-instance v5, Ljava/util/Vector;

    invoke-direct {v5}, Ljava/util/Vector;-><init>()V

    .line 4931
    .local v5, morephotosetlist:Ljava/util/Vector;,"Ljava/util/Vector<Lcom/netease/newsreader/bean/PhotosetListInfo;>;"
    :try_start_0
    new-instance v3, Lorg/json/JSONArray;

    invoke-direct {v3, v7}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V

    .line 4934
    .local v3, jsonArray:Lorg/json/JSONArray;
    if-eqz v3, :cond_1

    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v8

    const/4 v9, 0x1

    if-lt v8, v9, :cond_1

    .line 4936
    iget-object v8, p0, Lcom/netease/newsreader/activity/NewsReader$getmorePhotoset;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v8}, Lcom/netease/newsreader/activity/NewsReader;->access$92(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/Vector;

    move-result-object v8

    iget-object v9, p0, Lcom/netease/newsreader/activity/NewsReader$getmorePhotoset;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v9}, Lcom/netease/newsreader/activity/NewsReader;->access$92(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/Vector;

    move-result-object v9

    invoke-virtual {v9}, Ljava/util/Vector;->size()I

    move-result v9

    add-int/lit8 v9, v9, -0x1

    invoke-virtual {v8, v9}, Ljava/util/Vector;->remove(I)Ljava/lang/Object;

    .line 4937
    iget-object v8, p0, Lcom/netease/newsreader/activity/NewsReader$getmorePhotoset;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v8}, Lcom/netease/newsreader/activity/NewsReader;->access$92(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/Vector;

    move-result-object v8

    invoke-virtual {v5, v8}, Ljava/util/Vector;->addAll(Ljava/util/Collection;)Z

    .line 4938
    iget-object v8, p0, Lcom/netease/newsreader/activity/NewsReader$getmorePhotoset;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v8}, Lcom/netease/newsreader/activity/NewsReader;->access$92(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/Vector;

    move-result-object v8

    invoke-virtual {v8}, Ljava/util/Vector;->clear()V

    .line 4939
    const-wide/16 v8, 0xa

    invoke-static {v8, v9}, Ljava/lang/Thread;->sleep(J)V

    .line 4942
    const/4 v1, 0x0

    .local v1, index:I
    :goto_0
    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v8

    if-lt v1, v8, :cond_0

    .line 4963
    iget-object v9, p0, Lcom/netease/newsreader/activity/NewsReader$getmorePhotoset;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-virtual {v5}, Ljava/util/Vector;->size()I

    move-result v8

    add-int/lit8 v8, v8, -0x1

    invoke-virtual {v5, v8}, Ljava/util/Vector;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lcom/netease/newsreader/bean/PhotosetListInfo;

    invoke-virtual {v8}, Lcom/netease/newsreader/bean/PhotosetListInfo;->getSetid()Ljava/lang/String;

    move-result-object v8

    invoke-static {v9, v8}, Lcom/netease/newsreader/activity/NewsReader;->access$110(Lcom/netease/newsreader/activity/NewsReader;Ljava/lang/String;)V

    .line 4965
    new-instance v6, Lcom/netease/newsreader/bean/PhotosetListInfo;

    invoke-direct {v6}, Lcom/netease/newsreader/bean/PhotosetListInfo;-><init>()V

    .line 4966
    .local v6, photosetinfo:Lcom/netease/newsreader/bean/PhotosetListInfo;
    const-string v8, ""

    invoke-virtual {v6, v8}, Lcom/netease/newsreader/bean/PhotosetListInfo;->setCover(Ljava/lang/String;)V

    .line 4967
    const-string v8, "0"

    invoke-virtual {v6, v8}, Lcom/netease/newsreader/bean/PhotosetListInfo;->setSetid(Ljava/lang/String;)V

    .line 4968
    const-string v8, ""

    invoke-virtual {v6, v8}, Lcom/netease/newsreader/bean/PhotosetListInfo;->setImgsum(Ljava/lang/String;)V

    .line 4969
    const-string v8, ""

    invoke-virtual {v6, v8}, Lcom/netease/newsreader/bean/PhotosetListInfo;->setSetname(Ljava/lang/String;)V

    .line 4970
    const-string v8, ""

    invoke-virtual {v6, v8}, Lcom/netease/newsreader/bean/PhotosetListInfo;->setScover(Ljava/lang/String;)V

    .line 4971
    const-string v8, ""

    invoke-virtual {v6, v8}, Lcom/netease/newsreader/bean/PhotosetListInfo;->setTcover(Ljava/lang/String;)V

    .line 4972
    const-string v8, ""

    invoke-virtual {v6, v8}, Lcom/netease/newsreader/bean/PhotosetListInfo;->setClientcover(Ljava/lang/String;)V

    .line 4973
    invoke-virtual {v5, v6}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    .line 4975
    iget-object v8, p0, Lcom/netease/newsreader/activity/NewsReader$getmorePhotoset;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v8}, Lcom/netease/newsreader/activity/NewsReader;->access$92(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/Vector;

    move-result-object v8

    invoke-virtual {v8, v5}, Ljava/util/Vector;->addAll(Ljava/util/Collection;)Z

    .line 4976
    invoke-virtual {v5}, Ljava/util/Vector;->clear()V

    .line 4977
    iget-object v8, p0, Lcom/netease/newsreader/activity/NewsReader$getmorePhotoset;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v8}, Lcom/netease/newsreader/activity/NewsReader;->access$23(Lcom/netease/newsreader/activity/NewsReader;)Landroid/os/Handler;

    move-result-object v8

    const/16 v9, 0x29

    invoke-virtual {v8, v9}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 4989
    .end local v1           #index:I
    .end local v3           #jsonArray:Lorg/json/JSONArray;
    .end local v6           #photosetinfo:Lcom/netease/newsreader/bean/PhotosetListInfo;
    :goto_1
    return-void

    .line 4944
    .restart local v1       #index:I
    .restart local v3       #jsonArray:Lorg/json/JSONArray;
    :cond_0
    new-instance v6, Lcom/netease/newsreader/bean/PhotosetListInfo;

    invoke-direct {v6}, Lcom/netease/newsreader/bean/PhotosetListInfo;-><init>()V

    .line 4945
    .restart local v6       #photosetinfo:Lcom/netease/newsreader/bean/PhotosetListInfo;
    invoke-virtual {v3, v1}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    .line 4947
    .local v2, jobj:Lorg/json/JSONObject;
    sget-object v8, Lcom/netease/newsreader/bean/PhotosetListInfo;->COVER:Ljava/lang/String;

    invoke-virtual {v2, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v6, v8}, Lcom/netease/newsreader/bean/PhotosetListInfo;->setCover(Ljava/lang/String;)V

    .line 4948
    sget-object v8, Lcom/netease/newsreader/bean/PhotosetListInfo;->SETID:Ljava/lang/String;

    invoke-virtual {v2, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v6, v8}, Lcom/netease/newsreader/bean/PhotosetListInfo;->setSetid(Ljava/lang/String;)V

    .line 4949
    sget-object v8, Lcom/netease/newsreader/bean/PhotosetListInfo;->IMGSUM:Ljava/lang/String;

    invoke-virtual {v2, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v6, v8}, Lcom/netease/newsreader/bean/PhotosetListInfo;->setImgsum(Ljava/lang/String;)V

    .line 4950
    sget-object v8, Lcom/netease/newsreader/bean/PhotosetListInfo;->SETNAME:Ljava/lang/String;

    invoke-virtual {v2, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v6, v8}, Lcom/netease/newsreader/bean/PhotosetListInfo;->setSetname(Ljava/lang/String;)V

    .line 4951
    sget-object v8, Lcom/netease/newsreader/bean/PhotosetListInfo;->SCOVER:Ljava/lang/String;

    invoke-virtual {v2, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v6, v8}, Lcom/netease/newsreader/bean/PhotosetListInfo;->setScover(Ljava/lang/String;)V

    .line 4952
    sget-object v8, Lcom/netease/newsreader/bean/PhotosetListInfo;->TCOVER:Ljava/lang/String;

    invoke-virtual {v2, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v6, v8}, Lcom/netease/newsreader/bean/PhotosetListInfo;->setTcover(Ljava/lang/String;)V

    .line 4953
    sget-object v8, Lcom/netease/newsreader/bean/PhotosetListInfo;->CLIENTCOVER:Ljava/lang/String;

    invoke-virtual {v2, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v6, v8}, Lcom/netease/newsreader/bean/PhotosetListInfo;->setClientcover(Ljava/lang/String;)V

    .line 4954
    invoke-virtual {v5, v6}, Ljava/util/Vector;->add(Ljava/lang/Object;)Z

    .line 4942
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_0

    .line 4982
    .end local v1           #index:I
    .end local v2           #jobj:Lorg/json/JSONObject;
    .end local v6           #photosetinfo:Lcom/netease/newsreader/bean/PhotosetListInfo;
    :cond_1
    iget-object v8, p0, Lcom/netease/newsreader/activity/NewsReader$getmorePhotoset;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v8}, Lcom/netease/newsreader/activity/NewsReader;->access$23(Lcom/netease/newsreader/activity/NewsReader;)Landroid/os/Handler;

    move-result-object v8

    const/16 v9, 0x2a

    invoke-virtual {v8, v9}, Landroid/os/Handler;->sendEmptyMessage(I)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    .line 4985
    .end local v3           #jsonArray:Lorg/json/JSONArray;
    :catch_0
    move-exception v0

    .line 4986
    .local v0, e:Ljava/lang/Exception;
    iget-object v8, p0, Lcom/netease/newsreader/activity/NewsReader$getmorePhotoset;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v8}, Lcom/netease/newsreader/activity/NewsReader;->access$23(Lcom/netease/newsreader/activity/NewsReader;)Landroid/os/Handler;

    move-result-object v8

    invoke-virtual {v8, v10}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto :goto_1
.end method
